3.873 \(\int \frac{x^{-1+2 n}}{\left (a+b x^n\right ) \left (c+d x^n\right )} \, dx\)

Optimal. Leaf size=54 \[ \frac{c \log \left (c+d x^n\right )}{d n (b c-a d)}-\frac{a \log \left (a+b x^n\right )}{b n (b c-a d)} \]

[Out]

-((a*Log[a + b*x^n])/(b*(b*c - a*d)*n)) + (c*Log[c + d*x^n])/(d*(b*c - a*d)*n)

_______________________________________________________________________________________

Rubi [A]  time = 0.162708, antiderivative size = 54, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.077 \[ \frac{c \log \left (c+d x^n\right )}{d n (b c-a d)}-\frac{a \log \left (a+b x^n\right )}{b n (b c-a d)} \]

Antiderivative was successfully verified.

[In]  Int[x^(-1 + 2*n)/((a + b*x^n)*(c + d*x^n)),x]

[Out]

-((a*Log[a + b*x^n])/(b*(b*c - a*d)*n)) + (c*Log[c + d*x^n])/(d*(b*c - a*d)*n)

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 20.8847, size = 39, normalized size = 0.72 \[ \frac{a \log{\left (a + b x^{n} \right )}}{b n \left (a d - b c\right )} - \frac{c \log{\left (c + d x^{n} \right )}}{d n \left (a d - b c\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate(x**(-1+2*n)/(a+b*x**n)/(c+d*x**n),x)

[Out]

a*log(a + b*x**n)/(b*n*(a*d - b*c)) - c*log(c + d*x**n)/(d*n*(a*d - b*c))

_______________________________________________________________________________________

Mathematica [A]  time = 0.0851206, size = 44, normalized size = 0.81 \[ -\frac{a d \log \left (a+b x^n\right )-b c \log \left (c+d x^n\right )}{b^2 c d n-a b d^2 n} \]

Antiderivative was successfully verified.

[In]  Integrate[x^(-1 + 2*n)/((a + b*x^n)*(c + d*x^n)),x]

[Out]

-((a*d*Log[a + b*x^n] - b*c*Log[c + d*x^n])/(b^2*c*d*n - a*b*d^2*n))

_______________________________________________________________________________________

Maple [A]  time = 0.033, size = 59, normalized size = 1.1 \[{\frac{a\ln \left ( a+b{{\rm e}^{n\ln \left ( x \right ) }} \right ) }{ \left ( ad-bc \right ) bn}}-{\frac{c\ln \left ( c+d{{\rm e}^{n\ln \left ( x \right ) }} \right ) }{dn \left ( ad-bc \right ) }} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int(x^(-1+2*n)/(a+b*x^n)/(c+d*x^n),x)

[Out]

a/(a*d-b*c)/b/n*ln(a+b*exp(n*ln(x)))-c/d/n/(a*d-b*c)*ln(c+d*exp(n*ln(x)))

_______________________________________________________________________________________

Maxima [A]  time = 1.38846, size = 81, normalized size = 1.5 \[ -\frac{a \log \left (\frac{b x^{n} + a}{b}\right )}{b^{2} c n - a b d n} + \frac{c \log \left (\frac{d x^{n} + c}{d}\right )}{b c d n - a d^{2} n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x^(2*n - 1)/((b*x^n + a)*(d*x^n + c)),x, algorithm="maxima")

[Out]

-a*log((b*x^n + a)/b)/(b^2*c*n - a*b*d*n) + c*log((d*x^n + c)/d)/(b*c*d*n - a*d^
2*n)

_______________________________________________________________________________________

Fricas [A]  time = 0.235242, size = 61, normalized size = 1.13 \[ -\frac{a d \log \left (b x^{n} + a\right ) - b c \log \left (d x^{n} + c\right )}{{\left (b^{2} c d - a b d^{2}\right )} n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x^(2*n - 1)/((b*x^n + a)*(d*x^n + c)),x, algorithm="fricas")

[Out]

-(a*d*log(b*x^n + a) - b*c*log(d*x^n + c))/((b^2*c*d - a*b*d^2)*n)

_______________________________________________________________________________________

Sympy [F(-2)]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: NotImplementedError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x**(-1+2*n)/(a+b*x**n)/(c+d*x**n),x)

[Out]

Exception raised: NotImplementedError

_______________________________________________________________________________________

GIAC/XCAS [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{x^{2 \, n - 1}}{{\left (b x^{n} + a\right )}{\left (d x^{n} + c\right )}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x^(2*n - 1)/((b*x^n + a)*(d*x^n + c)),x, algorithm="giac")

[Out]

integrate(x^(2*n - 1)/((b*x^n + a)*(d*x^n + c)), x)